import java.io.File;

public class Separator {
    public static void main(String[] args) {
        File file = new File("abc.txt");

        File file1 = new File("d:\\test.txt");

        File file2 = new File("d:", "test.txt");

        File file3 = new File("d:" + File.separator + "test.txt");

    }
}
